package com.project.light.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "B_Users")
public class Users implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 用户名
     */
    @Column(name = "UserName")
    private String userName;

    /**
     * 公司id
     */
    @Column(name = "CompanyID")
    private Integer companyID;

    /**
     * 密码
     */
    @Column(name = "Password")
    private String password;

    /**
     * Token
     */
    @Column(name = "Token")
    private String token;

    /**
     * 上次登录时间
     */
    @Column(name = "LoginTime")
    private Date loginTime;

    /**
     * 过期时间
     */
    @Column(name = "ExpireTime")
    private Date expireTime;

    /**
     * 头像
     */
    @Column(name = "avatar")
    private String avatar;

    /**
     * 角色id
     */
    @Column(name = "roleID")
    private Integer roleID;

    /**
     * 手机号
     */
    @Column(name = "Phone")
    private String phone;

    /**
     * 创建时间
     */
    @Column(name = "CreatedDate")
    private Date createdDate;

    /**
     * 创建人用户id
     */
    @Column(name = "CreatedUser")
    private String createdUser;

    /**
     * 修改日期
     */
    @Column(name = "UpdatedDate")
    private Date updatedDate;

    /**
     * 修改人用户id
     */
    @Column(name = "UpdatedUser")
    private String updatedUser;

    /**
     * 删除标识
     */
    @Column(name = "DeleteFlag")
    private Integer deleteFlag;
}
